home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
elk-2_0.lha
/
elk-2.0
/
scripts
/
linkext.shl.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1992-11-03
|
434b
|
20 lines
#!/bin/sh
# Link one dynamically loadable extension (an object file); or
# combine several object files into one dynamically loadable extension
# and resolve against libraries.
#
# Arguments are the output file and one or more object files and libraries.
if [ $# = 0 ]; then
echo Usage: "$0: output-file object-files [libraries]"
exit 1
fi
output=$1
shift
ld -b @obj_ldflags@ @xflag@ $*
mv a.out $output
chmod 755 $output